<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStatHourOrdersTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('stat_hour_orders', function (Blueprint $table) {
            $table->increments('id');
            $table->date('date_time')->comment('日期');
            $table->tinyInteger('hour')->comment('小时值');
            $table->decimal('amount')->comment('金额');
            $table->integer('order_number')->comment('订单数量');
            $table->integer('pay_people_number')->comment('充值人数');
            $table->integer('server_id')->comment('区服ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('stat_hour_orders');
    }
}
